*===============================================================================*
*																				*
*		THIS DO FILE PRODUCES ONLINE APPENDIX TABLE C15 						*
* 		IN LONDONO-VELEZ AND QUERUBIN											*
*		"THE IMPACT OF EMERGENCY CASH ASSISTANCE IN A PANDEMIC: EXPERIMENTAL 	* 
* 		EVIDENCE FROM COLOMBIA", REVIEW OF ECONOMICS AND STATISTICS				*
*																				*
*		LAST MODIFIED: 2021-02-02												*
*																				*
*===============================================================================*

	use 	"${datadir}/main.dta", clear
	
	eststo clear
		foreach o of varlist ipv4 ipv5 ipv6 ipv7 ipv_comp{
		local l`o' : variable label `o'
				if `"`l`o''"' == "" {
					local l`o' "`i'"
					}
		eststo, title("`l`o''"): reghdfe `o' treated $control_lin if ipv2==1 & female==1 & ipv3==1, abs(codmunicipio $control_fe) vce(robust)
		sum `o' if treated==0 & ipv2==1 & female==1
		estadd local ysumm =round(r(mean),.001)	
		estadd local MunFE = "X"
		estadd local Controls = "X"
		}
		estout using "OnlineAppendix/TC15.xls", replace ///
			cells(b(star fmt(3)) se(par(`"="("'`")""') fmt(3))) dropped(".") keep(treated) label ///
			stats(MunFE Controls N r2 ysumm, labels("Municipality FE" "Baseline controls" "N" "R2" "Control Mean") ///
			fmt(%9.0f %9.0f %9.0f %9.3f %9.3f)) starlevels(* 0.1 ** 0.05 *** 0.01)

		
		
	
